package com.kma.summer2012.dao;

import com.kma.summer2012.model.CrumbsCatalogOfWork;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Set;

public interface CrumbsCatalogOfWorkDAO extends DAO<CrumbsCatalogOfWork> {

    public void add(CrumbsCatalogOfWork o) throws SQLException;

    public void update(CrumbsCatalogOfWork o) throws SQLException;

    public CrumbsCatalogOfWork getById(int id) throws SQLException;

    public Collection<CrumbsCatalogOfWork> getAll() throws SQLException;

    public void delete(CrumbsCatalogOfWork o) throws SQLException;

    void deleteAll(ArrayList<CrumbsCatalogOfWork> workList);

    public Set<CrumbsCatalogOfWork> getSons(CrumbsCatalogOfWork work);

}
